//package org.karelun.rabbit.rcp.command;
//
//import org.eclipse.draw2d.geometry.Rectangle;
//import org.eclipse.gef.commands.Command;
//import org.karelun.rabbit.graph.Shape;
//import org.karelun.rabbit.rcp.utils.ModelUtils;
//
//public class ChangeShapeConstraintCommand extends Command {
//
//	private Shape shape;
//	
//	private Rectangle bound;
//	
//	private Rectangle oldBound;
//	
//	public ChangeShapeConstraintCommand(Shape shape, Rectangle bound) {
//		this.shape=shape;
//		this.bound=bound;
//	}
//	
//	@Override
//	public void execute() {
//		oldBound=ModelUtils.getShapeBounds(shape);
//		ModelUtils.setShapeBounds(shape, bound);
//	}
//	
//	@Override
//	public void undo() {
//		ModelUtils.setShapeBounds(shape, oldBound);
//	}
//}
